home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 2.zwp / squad_gcshuttle.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  1.4 KB  |  86 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Moving tag into a region using transports
  4. //
  5. // %.tag - tag to recruit
  6. // %.region - region to transport to
  7. //
  8.  
  9. CreateScript("gcshuttle")
  10. {
  11.   InitialState("Recruit");
  12.  
  13.   CreateVarString("%.tag", "");
  14.   CreateVarString("%.region", "");
  15.   CreateVarInteger("%.attack", 0);
  16.  
  17.   State("Recruit")
  18.   {
  19.     Action("Recruit", "Tag")
  20.     {
  21.       Tag("%.tag");
  22.     }
  23.     Conditions()
  24.     {
  25.       Status("Completed")
  26.       {
  27.         GoToState("AcquireTransport");
  28.       }
  29.     }
  30.   }
  31.  
  32.   State("AcquireTransport")
  33.   {
  34.     Action("TransportAcquire");
  35.     Conditions()
  36.     {
  37.       Status("Completed")
  38.       {
  39.         GoToState("LoadTransport");
  40.       }
  41.       Status("Partial")
  42.       {
  43.         GoToState("LoadTransport");
  44.       }
  45.     }
  46.   }
  47.  
  48.   State("LoadTransport")
  49.   {
  50.     Action("TransportLoad")
  51.     {
  52.       Attack("%.attack");
  53.     }
  54.     Conditions()
  55.     {
  56.       Status("Completed")
  57.       {
  58.         GoToState("End");
  59.       }
  60.       Status("Partial")
  61.       {
  62.         GoToState("End");
  63.       }
  64.     }
  65.   }
  66.  
  67.   State("End")
  68.   {
  69.     Settings()
  70.     {
  71.       Setting("ObjectiveAction")
  72.       {
  73.         Op("@jda.shuttleleaving", "=", 1);
  74.       }
  75.     }
  76.     Conditions()
  77.     {
  78.       Status("Completed")
  79.       {
  80.         End();
  81.       }
  82.     }
  83.   }
  84. }
  85.  
  86.